home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gtk-2.0 / gtk / gtkfilesel.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  4.1 KB  |  124 lines

  1. /* GTK - The GIMP Toolkit
  2.  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.
  8.  *
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Lesser General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the
  16.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.  * Boston, MA 02111-1307, USA.
  18.  */
  19.  
  20. /*
  21.  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  22.  * file for a list of people on the GTK+ Team.  See the ChangeLog
  23.  * files for a list of changes.  These files are distributed with
  24.  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  25.  */
  26.  
  27. #ifndef __GTK_FILESEL_H__
  28. #define __GTK_FILESEL_H__
  29.  
  30.  
  31. #include <gdk/gdk.h>
  32. #include <gtk/gtkdialog.h>
  33.  
  34.  
  35. G_BEGIN_DECLS
  36.  
  37.  
  38. #define GTK_TYPE_FILE_SELECTION            (gtk_file_selection_get_type ())
  39. #define GTK_FILE_SELECTION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_SELECTION, GtkFileSelection))
  40. #define GTK_FILE_SELECTION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_SELECTION, GtkFileSelectionClass))
  41. #define GTK_IS_FILE_SELECTION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_SELECTION))
  42. #define GTK_IS_FILE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_SELECTION))
  43. #define GTK_FILE_SELECTION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_SELECTION, GtkFileSelectionClass))
  44.  
  45.  
  46. typedef struct _GtkFileSelection       GtkFileSelection;
  47. typedef struct _GtkFileSelectionClass  GtkFileSelectionClass;
  48.  
  49. struct _GtkFileSelection
  50. {
  51.   /*< private >*/
  52.   GtkDialog parent_instance;
  53.  
  54.   /*< public >*/
  55.   GtkWidget *dir_list;
  56.   GtkWidget *file_list;
  57.   GtkWidget *selection_entry;
  58.   GtkWidget *selection_text;
  59.   GtkWidget *main_vbox;
  60.   GtkWidget *ok_button;
  61.   GtkWidget *cancel_button;
  62.   GtkWidget *help_button;
  63.   GtkWidget *history_pulldown;
  64.   GtkWidget *history_menu;
  65.   GList     *history_list;
  66.   GtkWidget *fileop_dialog;
  67.   GtkWidget *fileop_entry;
  68.   gchar     *fileop_file;
  69.   gpointer   cmpl_state;
  70.   
  71.   GtkWidget *fileop_c_dir;
  72.   GtkWidget *fileop_del_file;
  73.   GtkWidget *fileop_ren_file;
  74.   
  75.   GtkWidget *button_area;
  76.   GtkWidget *action_area;
  77.  
  78.   /*< private >*/
  79.   GPtrArray *selected_names;
  80.   gchar     *last_selected;
  81. };
  82.  
  83. struct _GtkFileSelectionClass
  84. {
  85.   GtkDialogClass parent_class;
  86.  
  87.   /* Padding for future expansion */
  88.   void (*_gtk_reserved1) (void);
  89.   void (*_gtk_reserved2) (void);
  90.   void (*_gtk_reserved3) (void);
  91.   void (*_gtk_reserved4) (void);
  92. };
  93.  
  94.  
  95. #ifdef G_OS_WIN32
  96. /* Reserve old names for DLL ABI backward compatibility */
  97. #define gtk_file_selection_get_filename gtk_file_selection_get_filename_utf8
  98. #define gtk_file_selection_set_filename gtk_file_selection_set_filename_utf8
  99. #define gtk_file_selection_get_selections gtk_file_selection_get_selections_utf8
  100. #endif
  101.  
  102. GType      gtk_file_selection_get_type            (void) G_GNUC_CONST;
  103. GtkWidget* gtk_file_selection_new                 (const gchar      *title);
  104. void       gtk_file_selection_set_filename        (GtkFileSelection *filesel,
  105.                            const gchar      *filename);
  106. G_CONST_RETURN gchar* gtk_file_selection_get_filename        (GtkFileSelection *filesel);
  107.  
  108. void       gtk_file_selection_complete          (GtkFileSelection *filesel,
  109.                            const gchar        *pattern);
  110. void       gtk_file_selection_show_fileop_buttons (GtkFileSelection *filesel);
  111. void       gtk_file_selection_hide_fileop_buttons (GtkFileSelection *filesel);
  112.  
  113. gchar**    gtk_file_selection_get_selections      (GtkFileSelection *filesel);
  114.  
  115. void       gtk_file_selection_set_select_multiple (GtkFileSelection *filesel,
  116.                            gboolean          select_multiple);
  117. gboolean   gtk_file_selection_get_select_multiple (GtkFileSelection *filesel);
  118.  
  119.  
  120. G_END_DECLS
  121.  
  122.  
  123. #endif /* __GTK_FILESEL_H__ */
  124.